package com.nit.lab.dto.system;

import java.util.List;

public class TreeDTO {

    private String title;
    private Integer key;
    private Integer isLeaf;
    private List<TreeDTO> children;

    public TreeDTO() {
    }

    public TreeDTO(String title, Integer key, Integer isLeaf, List<TreeDTO> children) {
        this.title = title;
        this.key = key;
        this.isLeaf = isLeaf;
        this.children = children;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getKey() {
        return key;
    }

    public void setKey(Integer key) {
        this.key = key;
    }

    public Integer getIsLeaf() {
        return isLeaf;
    }

    public void setIsLeaf(Integer isLeaf) {
        this.isLeaf = isLeaf;
    }

    public List<TreeDTO> getChildren() {
        return children;
    }

    public void setChildren(List<TreeDTO> children) {
        this.children = children;
    }
}
